/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package IO;
import java.util.ArrayList;
import java.util.List;
/**
 *
 * @author ndnguyen
 */
public class Question {
    private String number = "";
    private String questionStatement = "";
    private List<String> choices = new ArrayList<String>();
    
    public Question(String i, String s, List<String> ls) {
		number = i;
		questionStatement =s;
		choices = ls;
	}

	public String getNumber() {
		return number;
	}

	public String getStatement() {
		return questionStatement;
	}

	public String getOneChoice(int i) {
		return choices.get(i);
	}

	public int getNumberOfChoice() {
		return choices.size();
	}

        public String toString()
        {
            char start = 'a';
              String format = "Question "+number +" : "+questionStatement
                            +"\r\n";
            int numQues = this.getNumberOfChoice();
            for(int i=0;i<numQues;i++)
            {
                int or = (int)start+i;
                char order = (char)or;
                format = format + String.valueOf(order)+")"+this.getOneChoice(i)+"\r\n";
            }
            return format;
        }
}
